package com.shao.jiegou;

public class dowhile {
    public static void main(String[] args) {
        int i=0,sum=0;
        do {
            sum+=i;
            i++;
        }while (i<=100);
        System.out.println(sum);
        System.out.println("========================");
        int a=-1;
        int b=-1;
        while (a>0)
        {
            System.out.println(a);
            a++;
        }
        System.out.println("========================");
        do {
//            至少走一次
            System.out.println(b);
            b++;
        }while (b>0);
    }

}
